package com.bit.bit_forum.model;

import lombok.Data;

import java.util.Date;

@Data
public class Article {

    private Long id;

    private Long boardId;

    private Long userId;

    private String title;

    private Integer visitCount;

    private Integer replyCount;

    private Integer likeCount;

    private Byte state;

    private Byte deleteStat;

    private Date createTime;

    private Date updateTime;

    private String content;

//    关联用户属性
    private User user;

//    关联板块属性
    private Board board;

//    判断当前用户是否为作者:
    private Boolean own;//包装类,未赋初值时,默认为空,不需要时,可以被锅炉掉
}